from random import randint, choice
import string


def solve():
    n = randint(5, 10)
    with open("string.txt", "w") as f:
        for i in range(n):
            f.write(str("".join([choice(string.ascii_letters) for length in range(randint(10, 20))])))
            f.write("\n")
    with open("string.txt", "r") as f:
        count = 0
        while f.readline() != "":
            count += 1
        print(count)


if __name__ == "__main__":
    solve()
